home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *** vlt.rexx -- vlt startup script
- *** if vlt is not running, lauch vlt
- *** if vlt is on the background, wake it up.
- ******************************************************************************/
-
- /** some of defaults **/
- vltfonedir = "VLTFoneBook:" /** where phone book file locate **/
- memdir = "ram:" /** where these file should relocated **/
-
- /** when lauch a arexx from toolmanager, you need this **/
- address command
-
- /** copy phone book file if they are not there **/
- if Getenv(vlt) = "" then do
- file.1='VLTFoneBook.vlt' /** specify these files **/
- file.2='VLTDialer.rexx'
- file.3='VLTFoneBook'
- do i=1 to 3
- "copy "vltfonedir || file.i memdir
- end
- result = Setenv(vlt,"active")
- end
-
- /** lauch vlt if it is not running already **/
- if ~show(ports,'VLT') then do
- "run >nil: Work:Comm/VLT/vlt"
- do until showlist('P',VLT) /** wait for port to appear **/
- call delay(10)
- end
- end
-
- /** start up the auto phone dialer **/
- address vlt
- "hangup"
- "@"memdir || "VLTFoneBook.vlt"
-
- exit
- /** the end **/
-
-